package com.example.recordingpen_datacollection.Utils;

import com.example.recordingpen_datacollection.Utils.DateUtils.DateUtil;

import java.util.UUID;

public class SerialNumberUtil {
    public static String GenerateTheSequenceNumber(Long startDate,Integer uid){
        String yyyyMMddHHmmss = DateUtil.stampToDate2(startDate, "yyyyMMddHHmmssSSS");
        String uuid = UUID.randomUUID().toString();
        String[] split = uuid.split("-");
//        System.out.println(split.length);   //'-' 5
        return split[0]+yyyyMMddHHmmss+split[1]+uid;
    }

}
